const { http } = require('../utils/request');

//  获取轮播图数据
exports.carouselInformationList = async function(data = {}) {
	return await http.post('/wechat/home/carouselInformationList', {
		data: data
	})
}

//  当前热门活动
exports.curPopularActivityList = async function(data = {}) {
	return await http.post('/wechat/popularActivity/list', {
		data: data
	})
}

//  历史活动列表
exports.historyPopularActivityList = async function(data = {}) {
	return await http.post('/wechat/popularActivity/historyList', {
		data: data
	})
}

//  热门活动详情
exports.popularActivityDetail = async function(id = '') {
	return await http.post('/wechat/popularActivity/detail', {
		data: { id }
	})
}

//  获取热门数据列表
exports.popularActivityList = async function(data = {}) {
	return await http.post('/wechat/home/popularActivityList', {
		data: data
	})
}



//  获取档案信息
exports.archiveInformation = async function(data = {}) {
	return await http.get('/wechat/profile/archiveInformation', {
		data: data
	})
}

//  创建档案信息查阅
exports.buildArchiveInformationCode = async function(data = {}) {
	return await http.get('/wechat/profile/buildArchiveInformationCode', {
		data: data
	})
}

//  查阅档案信息
exports.buildArchiveInformationCode = async function(data = {}) {
	return await http.get('/wechat/profile/referToArchiveInformation/{code}', {
		data: data
	})
}

//  活动列表
exports.profileFriendshipActivityLis = async function(data = {}) {
	return await http.post('/wechat/profile/friendshipActivityList', {
		data: data
	})
}

